<table width="100%" border="1" class="table">
	<tbody>
		<tr>
			<th>用户</th>
			<th>类型</th>
			<th>本局钱数</th>
			<th>总钱数</th>
		</tr>
		<?php foreach($data as $detail) :?>
	    <tr>
	    	<td><?php echo $detail['mid'] ?></td>
	    	<td><?php echo $detail['turnmoney']==0 ? '平' : ( $detail['turnmoney']>0 ? '赢' : '输' ) ?></td>
	    	<td><?php echo $detail['turnmoney'] ?></td>
      		<td><?php echo $detail['curmoney'] ?></td>
	    </tr>
		<?php endforeach; ?>
	</tbody>
</table>
